package org.example.repository;

import org.springframework.context.annotation.Conditional;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Conditional(OnDriverCondition.class)
public @interface ConditionalOnDriver {

    String value() default "";

    @AliasFor("value")
    String havingValue() default "";

    boolean matchIfMissing() default false;
}
